/**
 *@file emotion_handler.cpp
 *
 *@brief EmotionHandler, semi-abstracte klasse die de emoties verwerkt.
 */
#include "emotion/emotion_handler.h"

void EmotionHandler::emotionCallback(const comm::emotion::ConstPtr &message)
{
	_state		= message->state;
	_emotion	= message->emotion;
}

/**
 * Get the state.
 */
bool EmotionHandler::emoteOk()
{
	return _state;
}

/**
 * Return the emotion.
 */
int EmotionHandler::getEmotion()
{
	return _emotion;
}

